package com.example.api.mall.logic;

import com.example.entity.domain.user.User;
import com.example.entity.api.mall.user.LoginVo;
import com.example.entity.api.mall.user.RegisterVo;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;

@Transactional
public interface IUserLogic {

    /**
     * 用户登录
     * @param loginVo
     * @param request
     * @return
     */
    User login(LoginVo loginVo, HttpServletRequest request);

    /**
     * 用户注册
     * @param registerVo
     * @param request
     * @return
     */
    boolean register(RegisterVo registerVo, HttpServletRequest request);

    /**
     *
     * @param userId
     * @return
     */
    User info(Long userId);

}
